#ifndef WSCLIENT_H
#define WSCLIENT_H
#include <string>
#include <Winsock.h>
using namespace std;

#define WSCLIENT_BUFLEN   4096
#define SERVER_PORT    5001


class wsClient
{
public:
	int loadwsReqTemp(string path);
	string Callwebservices(string url,string cmd);
	static  wsClient * getGclient();
	int wsClientSendMsg(string msgTosend, string ip,int port);
	int wsClientInit();
	string getWsResult();
	int getServIPAndReqfile(string& url,string &servIP,string  & reqfile);
	string callLocalFuntion(string reqfile,string cmd);
private:
	static wsClient * g_client;
	static char wsClientRecvBuf[WSCLIENT_BUFLEN];
	static string reqmessage;
	SOCKET sockClient;
	WSADATA wsaData;

};


#endif 